package com.peaker.advertisingpro.utils

import android.os.Environment

/**
 *  @ 作者 CODE_LYF
 *  @ 时间   2021/4/5.
 *  代码人生
 */
object Common {


    val json: String = "{\n" +
            "    \"status\": \"1\",\n" +
            "    \"count\": \"1\",\n" +
            "    \"info\": \"OK\",\n" +
            "    \"infocode\": \"10000\",\n" +
            "    \"lives\": [\n" +
            "        {\n" +
            "            \"province\": \"浙江\",\n" +
            "            \"city\": \"杭州市\",\n" +
            "            \"adcode\": \"330100\",\n" +
            "            \"weather\": \"晴\",\n" +
            "            \"temperature\": \"14\",\n" +
            "            \"winddirection\": \"东\",\n" +
            "            \"windpower\": \"≤3\",\n" +
            "            \"humidity\": \"77\",\n" +
            "            \"reporttime\": \"2021-04-15 21:06:28\"\n" +
            "        }\n" +
            "    ]\n" +
            "}"
    //    是否激活
    val AUTH: String = "AUTH"
    val KEY: String = "KEY"
    //激活时间
    val AUTHTIMEEND: String = "AUTHTIMEEND"
    val AUTHTIMESTART: String = "AUTHTIMESTART"
    //是否连接
    val ISCONNECT: String = "ISCONNECT"
    //密码
    val PWD: String = "PWD"
    //定时开关机时间json 多个
    val OPENTIME: String = "OPENTIME"
    //角度
    val ANGLE: String = "ANGLE"
    //
    val SCREEN: String = "SCREEN"
    //联机 /单机模式   默认是 联机模式
    val MOUDLE: String = "MOUDLE"
    //应用守护开关
    val PROTECT: String = "PROTECT"
    //是否开机自启动
    val REBOOT: String = "REBOOT"
    //关机时间
    val SHUTDOWN: String = "SHUTDOWN"
    //开机时间
    val BOOTTIME: String = "BOOTTIME"
    //登录状态
    val LOGIN_STATE: String = "LOGIN_STAGE"
    //终端名称
    val MACNAME: String = "MACNAME"
    /**
     * 设置的音量值
     */
    val VOLUME: String = "VOLUME"
    //登录json
    val LOGINJSON: String = "LOGINJSON"
    //ip地址
    val IP: String = "IP"
//    var ip: String = "123.57.26.191"
    var ip: String = ""
    var web_port: String = "8899"
    var msg_port = "7788"
    //web端口
    val WEB_PORT = "WEB_PORT"
    //消息端口
    val MSG_PORT = "MSG_PORT"

    val DIRADDRESS: String = Environment.getExternalStoragePublicDirectory("MIPS2").path

    val DIRADDRESS1: String = "/sdcard/com.peaker.advertisingpro"
    //当前节目的Id
    var  programId: String = ""

    val UPLODURL: String = "/deviceUpload/upload"

    val DOWNURL: String = "/publish/getPublishZip?id="

    val DOWNAPK: String = "/deviceApk/getApk?id="

    val FLAG = "_${'$'}"
    //登录成功的标记 0是登录成功 1是登录失败
    var LOGINGFLAG = 1
}